import{a as e,c as t,d as n,l as r,r as i,s as a}from"./B603vO-13smUKN.js";import{d as o,s}from"./DcIns0se4bdVKJ.js";import{T as c,b as l,w as u,x as d,y as f}from"./Djz-X2uT3RQbKF.js";var p=`factur-x.xml`,m=`urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0#`;function h(e){return`
<rdf:Description xmlns:fx="${m}" rdf:about="">
  <fx:DocumentType>${e?.zugferdDocumentType??`INVOICE`}</fx:DocumentType>
  <fx:DocumentFileName>factur-x.xml</fx:DocumentFileName>
  <fx:Version>1.0</fx:Version>
  <fx:ConformanceLevel>${e?.zugferdConformanceLevel?.toUpperCase()??`BASIC`}</fx:ConformanceLevel>
</rdf:Description>
    `.trim()}var g=1.5,_=t({sidebar:i().default(!0),addressWindow:i().default(!1),quantity:i().default(!1),fontSize:a().default(10),lineHeight:a().default(g)}),v=r(t({net:a(),tax:a(),taxRate:a(),taxCategory:n().optional(),exemptionReason:n().optional(),exemptionCode:n().optional()})),y=u.extend({street:n().optional(),zip:n().optional(),city:n().optional()}).omit({_type:!0,_id:!0,created:!0,updated:!0}),b=c.extend({doc:f.extend({net:a().optional(),positions:r(l).optional(),dueDescription:n().optional(),dueDate:e().optional(),deliveryDate:e().optional()}),taxes:v.optional(),allowanceCharges:r(d).optional(),logo:n().optional(),seller:y.optional(),buyer:y.optional(),iban:n().optional(),buyerReference:n().optional(),orderReference:n().optional(),contractReference:n().optional(),projectReference:n().optional(),procuringId:n().optional(),procuringName:n().optional(),zugferdDocumentType:n().optional(),documentTypeCode:n().optional(),paymentMeansCode:n().optional(),creditorReferenceId:n().optional(),periodStart:e().optional(),periodEnd:e().optional(),prepaidAmount:a().optional(),precedingInvoiceNumber:n().optional(),precedingInvoiceDate:e().optional(),payeeName:n().optional(),deliveryCountry:n().optional(),paymentMeansText:n().optional(),paymentAccountName:n().optional(),bic:n().optional(),mandateReference:n().optional(),debitedIban:n().optional(),objectId:n().optional(),objectTypeCode:n().optional(),noteSubjectCode:n().optional(),supportingDocuments:r(t({id:n().optional(),description:n().optional(),filename:n().optional()})).optional(),zugferdConformanceLevel:n().optional(),layout:_,xml:n().optional()}).omit({_type:!0});function x(e){return e||s()}function S(e,t,n=14){return e||(t?o(t,n):s())}function C(e,t){return e||t||s()}export{g as a,m as c,S as i,x as n,b as o,C as r,p as s,h as t};